home *** CD-ROM | disk | FTP | other *** search
- ############################################################################
- # #
- # MAKEFILE for the TIMEDEMO #
- # #
- ############################################################################
-
- # Compiler is M for Microsoft, T for Borland Turbo C, Z for Zortch, J for JPI
- COMPILER = J
- # Model is M for Medium, L for Large, S for Small
- MODEL = l
-
- # JPI C macros
- CC = tsc
- OPT = /othlr
- DEBUG = /rs+ /rn+ /ri+ /ro+ /rr+ /v2 /b+ /ox- /w-
- CFLAGS = /zq /e+ /j+ /m$(MODEL) /dMSC /dDOS /dLANSYS $(DEBUG) /wpin- /wdnu- /wubd- /wait-
- ASM = masm
- ##LMODEL should be 1 if you want large data
- ASMDEBUG = /Zi
- ASMFLAGS = /DLMODEL=0 /DTC=0 /mx
- LIB = lib
- LINK = c:\msc5\link
- LFLAGS = /st:8192
-
-
-
- # Borland Turbo C macros
- #CC = tcc
- # Optimization : -G favors speed over size, -O improves jumps & loops
- #OPT = -G -O
- #CFLAGS = -v -c -d -f- -k -N -K -m$(MODEL) -DDOS -DTC -w-aus -w-pia -w-stu -w-rvl -w-par
- #ASM = tasm
- #ASMFLAGS = /dTC=1 /dLMODEL=0 /mx
- #LIB = tlib
- #LINK = tlink
- #LFLAGS = /v
-
- RC = \mewel\rc
-
- # We tack the compiler and model onto the end of the library name, so
- # the library for Borland's Turbo C, medium model would be called WINLIBTM.LIB
-
- # Inference rules for C and ASM files
-
- .c.obj :
- $(CC) $(CFLAGS) $*.c
-
- .asm.obj :
- $(ASM) $(ASMFLAGS) $*;
-
- .rc.res :
- $(RC) $*
-
-
- DEMO = mewldemo
- OBJS = $(DEMO).obj
- OBJ = $(DEMO)
-
- all : $(DEMO).exe
-
- $(DEMO).obj : $(DEMO).c
-
- $(DEMO).res : $(DEMO).rc
-
- $(DEMO).exe : $(OBJS) $(DEMO).res
- $(LINK) /co $(LFLAGS) $(OBJ),$(DEMO),nul,winlib$(COMPILER)$(MODEL).lib;
- # $(RC) $(DEMO).res
-